package com.yunxi.model.sto;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 车辆移库单
 * </p>
 *
 * @author caoYong
 * @since 2019-05-28
 */
@Data
@EqualsAndHashCode(callSuper = false)

@TableName("pms_sto_change_storage")
@ApiModel(value="StoChangeStorage对象", description="车辆移库单")
public class StoChangeStorage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "CHANGE_STORAGE_ID", type = IdType.UUID)
    private String changeStorageId;

    @ApiModelProperty(value = "组织代码")
    @TableField("ORG_CODE")
    private String orgCode;

    @ApiModelProperty(value = "移库单号")
    @TableField("CHANGE_STORAGE_NO")
    private String changeStorageNo;

    @ApiModelProperty(value = "车辆VIN码")
    @TableField("VIN")
    private String vin;

    @ApiModelProperty(value = "单据状态(ChangeStorageBill_state,0 新1移库进行中,2 移库完成,3 作废)")
    @TableField("BILL_STATE")
    private String billState;

    @ApiModelProperty(value = "所属仓库名称")
    @TableField("STORAGE_NAME")
    private String storageName;

    @ApiModelProperty(value = "老库位")
    @TableField("OLD_STORAGE_CODE")
    private String oldStorageCode;

    @ApiModelProperty(value = "新库位")
    @TableField("NEW_STORAGE_CODE")
    private String newStorageCode;

    @ApiModelProperty(value = "RFID号/移库司机")
    @TableField("RFID_NO")
    private String rfidNo;

    @ApiModelProperty(value = "移库完成时间")
    private Date completeTime;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "CREATE_TIME",fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "CREATE_BY",fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "UPDATE_TIME",fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "修改人")
    @TableField(value = "UPDATE_BY",fill = FieldFill.UPDATE)
    private String updateBy;

    @ApiModelProperty(value = "是否作废1是0否")
    @TableField("IS_DEL")
    private Integer isDel;

    @ApiModelProperty(value = "移库原因")
    @TableField("CHANGE_REASON")
    private String changeReason;


}
